home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / documents / ELF / elsproc1 < prev    next >
Encoding:
Text File  |  1996-11-11  |  512 b   |  31 lines

  1. # start file elsproc1 
  2.     beginseg 
  3.         segtype LOAD 
  4.         segflags R X 
  5.         vaddr 0x10000000 
  6.         segalign 0x1000 
  7.         contents default 
  8.     endseg
  9.  
  10.     beginseg 
  11.         segtype LOAD 
  12.         segflags R W 
  13.         segalign 0x1000 
  14.         contents default 
  15.     endseg
  16.  
  17.     beginseg 
  18.         segtype LOAD 
  19. # The use of L in segflags field is key. This 
  20. # allows each process to get a separate copy of 
  21. # the array foo1. 
  22.         segflags R W L 
  23.         contents 
  24.         beginscn .mybss 
  25.             scntype NOBITS 
  26.             scnflags ALLOC WRITE 
  27.             sym foo1 
  28.         endscn 
  29.     endseg 
  30. # end file elsproc1
  31.